<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script setup>
import { onMounted } from 'vue'
import { isUserLoggedIn, isAdminLoggedIn } from '@/utils/auth'

onMounted(() => {
  // 检查登录状态
  const userLoggedIn = isUserLoggedIn()
  const adminLoggedIn = isAdminLoggedIn()

  if (userLoggedIn || adminLoggedIn) {
    console.log('用户已登录')
  }
})
</script>

<style>
#app {
  height: 100%;
  width: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
}
</style>
